#ifndef __CARSTOP_H_
#define __CARSTOP_H_
#include <string>
#include <ctime>
#include "linkStack.h"
#include "linkQueen.h"

struct car
{
    car(const std::string& name):name(name),arriveTime(0),leaveTime(0){}
    std::string name;//车牌号
    time_t arriveTime;//到达时间
    time_t leaveTime;//离开时间
};

class carStop{
public:
    carStop(int size):size(size){}
    void comeCar();
    void leaveCar();
    void show();
    ~carStop();
private:
    linkStack stop;//停车场
    linkQueen pavement;//便道
    const int size; //车位数
};


#endif